<br>
<table align="center" cellspacing="2" cellpadding="2" border="0">
<tr>
    <td colspan="2" align="center">
	<h1>Mixed logistic regression; A comparison with WinBUGS</h1>
		<br><br>
	</td>
</tr>

<tr>
    <td width="30%">
	<table width="90%" border="0" cellspacing="0" cellpadding="2" bgcolor="#359163">
         <tr>
           <td align="center">
             <font face="Arial, Helvetica" color="White"><b>ADMB Files</b></font>
           </td>
         </tr>
         <tr>
           <td>
             <table cellspacing=0 cellpadding=3 width="100%" border=0 bgcolor="#ffffff">
               <tr>
			     <td>
                     Code: <a href="logistic.tpl">logistic.tpl</a><br>
                     Data: 		<a href="logistic.dat">logistic.dat</a><br>
                     Initial values: <a href="logistic.pin">logistic.pin</a><br>
                     All required files (DOS): <a href="logistic.zip">logistic.zip</a><br>
					 All required files (linux): <a href="logistic.tar.gz">logistic.tar.gz</a><br>					 
                     Results: <a href="logistic.par">logistic.par</a><br>
                     <a HREF="http://www.r-project.org/">R</a> (S-Plus) scripts: <a href="logistic.s">logistic.s</a><br>
				   </font>
                 </td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
<br>

	<table width="90%" border="0" cellspacing="0" cellpadding="2" bgcolor="#359163">
         <tr>
           <td align="center">
             <font face="Arial, Helvetica" color="White"><b>Running ADMB-executables</b></font>
           </td>
         </tr>
         <tr>
           <td>
             <table cellspacing=0 cellpadding=3 width="100%" border=0 bgcolor="#ffffff">
               <tr>
			     <td>
                     In a <a href="../admb_tutorial.html">DOS</a> window<br> 
					 Under <a href="../admb_tutorial.html">linux</a><br><br>
					 
					 Command line options:<br>
					 -l1 10000000 -l2 100000000 <br>
					 -l3 10000000 -nl1 10000000
				   </font>
                 </td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
<br>

	<table width="90%" border="0" cellspacing="0" cellpadding="2" bgcolor="#359163">
         <tr>
           <td align="center">
             <font face="Arial, Helvetica" color="White"><b>WinBUGS files</b></font>
           </td>
         </tr>
         <tr>
           <td>
             <table cellspacing=0 cellpadding=3 width="100%" border=0 bgcolor="#ffffff">
               <tr>
			     <td>
                     Code (ascii text): <a href="bugs.txt">bugs.txt</a><br>
                     Data (ascii text): <a href="data.txt">data.txt</a><br>
                     Initial values (ascii text): <a href="inits.t	xt">inits.txt</a><br>
				   </font>
                 </td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
<br>


	<table width="90%" border="0" cellspacing="0" cellpadding="2" bgcolor="#359163">
         <tr>
           <td align="center">
             <font face="Arial, Helvetica" color="White"><b>Results: Computation times</b></font>
           </td>
         </tr>
         <tr>
           <td>
             <table cellspacing=0 cellpadding=3 width="100%" border=0 bgcolor="#ffffff">
               <tr>
			     <td>
                     ADMB-RE: 27 seconds.<br>
					 WinBUGS: 700 seconds.
				   </font>
                 </td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
  <br>

	      <TABLE cellSpacing=0 cellPadding=2 width="90%" bgColor=#359163 border=0>
        <TR>
          <TD align=middle><FONT face="Arial, Helvetica" 
            color=white><B>Navigation</B></FONT> </TD></TR>
        <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#ffffff 
            border=0>
              <TBODY>
              <TR>
                <TD>			  
				<A href="http://otter-rsch.com/admbre/admbre.html">ADMB-RE home</A> <br>
                <A href="http://otter-rsch.com/">Otter Research</A> 
        </FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
      <TABLE cellSpacing=0 cellPadding=2 width="90%" bgColor=#359163 border=0></TABLE>



	</td>
	
 <td width="75%">
<h3><strong>Model description</strong></h3>
Logistic regression is commonly used to relate a dichotomous response <em>y</em> to explanatory 
variables. This example use simulated data to examplify logistic regression with random effects.
A full description of the model can be found here: <a href="logistic.pdf">logistic.pdf</a><br><br><br>
 
<h3><strong>Comparison with WinBUGS</strong></h3>
<a HREF="http://www.mrc-bsu.cam.ac.uk/bugs/">WinBUGS</a> is a software package for formulating and fitting
Bayesian hierarchical models. From a user perspective WinBUGS and ADMB-RE appear similar because both
software packages:
<ul>
	<li> Allows models with random effects.</li>
	<li> Contain a full programming language, and hence give the user great flexibility in formulating statistical models.</li>
	<li> Are automatic, in the sense of hiding the technical details of computation from the user.</li>
</ul>
Despite these similarities, the underlying computational technology is very different. 
In this example we compare WinBUGS and ADMB-RE with respect to computation times on simulated data. 
The <a HREF="http://www.r-project.org/">R</a> (S-Plus) script used to generate data in the input
format for both WinBUGS and ADMB-RE can be found here: <a href="logistic.s">logistic.s</a>. 
You can modify this script to generate new datasets.<br>
	</td>

</table>

